package sensors.realSensors;

import pacman.Ghost;
import sensors.LightSensor;
import sensors.Sensor;


public class RealLightSensor extends Sensor implements LightSensor{
	
	public RealLightSensor(Ghost ghost){
		super(ghost);
	}

	@Override
	public int readValue() {
		lastReading = getGhost().getCommunicator().getLightValue();
		return lastReading;
	}
	@Override
	public int getLastReading() {
		return lastReading;
	}
	
	
}
